import request from "../utils/axios";
// 获取验证码
export function getCode(data) {
   return request({
      method: 'POST',
      url: '/code/sendcode',
      data
   })
}
// 添加验证码和手机号到数据库
export function addCode(data) {
   return request({
      method: 'POST',
      url: '/code/addVerifycode',
      data
   })
}
// 比对验证码
export function compareVerifycode(data) {
   return request({
      method: 'POST',
      url: '/code/compareVerifycode',
      data
   })
}
